import './assets/main.css'
import { setupStore } from './stores/index'
import { createApp } from 'vue'
import App from './App.vue'
import router from './router'
import ElementPlus from 'element-plus'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

import 'element-plus/dist/index.css'
import 'vant/lib/index.css'
import { setupVant } from './setupVant'
import '@vant/touch-emulator'

const app = createApp(App)
setupVant(app)
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component)
}
setupStore(app)
app.use(router)
app.use(ElementPlus)
app.mount('#app')
